package com.atguigu.springcloud;

import com.atguigu.MyRule.MySelfRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

/**
 * @create: 2019-07-02 21:04
 **/
@EnableEurekaClient //开启eureka客户端
@SpringBootApplication
//开启使用自定义负载均衡策略，name表示针对哪个服务来使用，configuration表示采用的配置类
@RibbonClient(name = "MICROSERVICECLOUD-DEPT", configuration = MySelfRule.class)
public class DeptConsumer80_APP {
    public static void main(String[] args) {
        SpringApplication.run(DeptConsumer80_APP.class, args);
    }
}
